using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace HelperXMachine
{
    public static class Converters
    {
        public static Color ColorFromInt4(int[] i)
        {
            return new Color(i[0], i[1], i[2], i[3]);
        }

        public static Color ColorFromInt3(int[] i)
        {
            return new Color(i[0], i[1], i[2]);
        }

        public static Rectangle RectFromBRect(BasicParts.Rectangle r)
        {
            return new Rectangle(r.X, r.Y, r.Width, r.Height);
        }

        public static Vector2 Vector2FromInt2(int[] i)
        {
            return new Vector2(i[0], i[1]);
        }
    }
}
